﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace GrayParrot.ServiceBus.Configuration
{
    public class DelayedMessagesSettings : ConfigurationElement
    {
        /// <summary>
        /// Gets or sets the connection string...
        /// </summary>
        /// <value>
        /// The connection string.
        /// </value>
        [ConfigurationProperty("connectionStringName", IsRequired = true)]
        public string ConnectionStringName
        {
            get { return (string)base["connectionStringName"]; }
            set { base["connectionStringName"] = value; }
        }

        /// <summary>
        /// Gets or sets the name of the table containing the settings for service bus delayed messages...
        /// </summary>
        /// <value>
        /// The name of the table containing the settings for service bus delayed messages...
        /// </value>
        [ConfigurationProperty("tableName", IsRequired = true)]
        public string TableName
        {
            get { return (string)base["tableName"]; }
            set { base["tableName"] = value; }
        }

        /// <summary>
        /// Gets or sets the name of the schema of the table containing the settings for service bus delayed messages...
        /// </summary>
        /// <value>
        /// The name of the schema of the table containing the settings for service bus delayed messages...
        /// </value>
        [ConfigurationProperty("schemaName", IsRequired = true)]
        public string SchemaName
        {
            get { return (string)base["schemaName"]; }
            set { base["schemaName"] = value; }
        }

        public DelayedMessagesSettings()
        {
        }
    }
}
